package com.eastjet.maintenance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eastjet.maintenance.domain.Acceptance;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author 杨博文
 * @description 针对表【acceptance(到货验收)】的数据库操作Service
 * @createDate 2024-11-25 09:23:37
 */
public interface AcceptanceService extends IService<Acceptance> {

    /*
     * 条件查询到货验收
     */
    List<Acceptance> SelectByAcceptanceId(Acceptance acceptance);

    /*
     * 批量更新到货验收
     */
    Boolean UpdateAcceptance(List<Acceptance> acceptance);

    /*
     * 新增到货验收
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean InsertAcceptance(Map<String, Object> map);
}
